package com.jifeng.api.crud.controller;

import com.jifeng.api.crud.entity.FeeConfigEntity;
import com.jifeng.api.crud.entity.FeeConfigTestEntity;
import com.jifeng.api.crud.service.FeeConfigTestService;
import com.jifeng.api.utils.PageUtils;
import com.jifeng.api.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Arrays;
import java.util.Map;


/**
 * 
 *
 * @author jifeng
 * @email 1593140625@qq.com
 * @date 2020-09-17 21:36:32
 */
@RestController
@RequestMapping("crud/fee/test")
public class FeeConfigTestController {
    @Autowired
    private FeeConfigTestService feeConfigService;

    /**
     * 修改基础费用信息
     */
    @PostMapping("/pc/config/upd")
    public R updateConfig(@RequestBody FeeConfigTestEntity feeConfig){
        R rs= feeConfigService.updateConfig(feeConfig);
        return rs;
    }

    /**
     * 获取收费策略信息
     */
    @GetMapping("/config/get")
    public R getFeeConfig(){
       R rs= feeConfigService.getFeeConfig();
       return rs;
    }
}
